package Singleton;


    public class ClientClass {
        public static void main(String args[]) {
            MyFruit fru1 = new MyFruit();
            MyFruit fru2 = new MyFruit();
            MyFruitStore mfs = MyFruitStore.GetFruitStore();
            mfs.Add(1, fru1);
            mfs.Add(2, fru2);


            MyFruit fru = (MyFruit) mfs.Get(4);
            fru.Display();
            System.out.println("mfs1:" + mfs.toString());
        }
    }